from flask_migrate import Migrate, MigrateCommand

from flask_script import Manager
from config import *
from info import *

config_mode = DevelopmentConfig
app = creat_app(config_mode)

manage = Manager(app)

Migrate(app, db)
manage.add_command('c_db', MigrateCommand)

if __name__ == '__main__':

    manage.run()
